﻿## -*- coding: utf-8 -*-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Yellowing   
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20110123

-->


<% self.seen_css = set() %>
<head>
    ${self.css()}
	<title>Książka kucharska</title>
</head>

<%def name="css_link(path, media='')">
    % if path not in self.seen_css:
        <link rel="stylesheet" type="text/css" href="${path|h}" media="${media}"></link>
    % endif
</%def>

<%def name="css()">
    ${css_link('/style.css', 'screen')}
</%def>


<body>
<div id="wrapper">
	<div id="header">
		<div id="logo">
			<h1><a href="#">Książka kucharska</a></h1>
		</div>
		<!--<div id="search">
			<form method="get" action="">
				<fieldset>
					<input type="text" name="s" id="search-text" size="15" value="enter keywords here..." />
					<input type="submit" id="search-submit" value="GO" />
				</fieldset>
			</form>
		</div>-->
	</div>
	<!-- end #header -->

	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="menu">
					<ul>
						<li class="current_page_item"><a href="/index/index">Strona główna</a></li>
						<li><a href="/register/index">Rejestracja</a></li>
						
					</ul>
				</div>
				<!-- end #menu -->
				<div id="content">
				
					${self.page()}
					
					<div style="clear: both;">&nbsp;</div>
				</div>
				<!-- end #content -->
				<div id="sidebar">
					<ul>
						<li>
							<%    user = session.get("user")    %>
							% if user:
							<h2>Zalogowany</h2>
							jako ${user}
							[<a href="/login/logout">Wyloguj</a>]
							% else:
							<%    user = session.get("user")    %>
							<h2>Logowanie</h2>
							<p>
								${h.form(url(controller='login', action='login'))}
								<label>Login: ${h.text('login')} ${c.errlogin}</label><br>
								<label>Hasło: ${h.text('pass')} ${c.errpass}</label><br>
								${h.submit('post', 'Zaloguj')}
								${h.end_form()}
							</p>
							% endif
						</li>
						<li>
							<h2>Kategorie</h2>
							<ul>
								<li><a href="#">Aliquam libero</a></li>
								<li><a href="#">Consectetuer adipiscing elit</a></li>
								<li><a href="#">Metus aliquam pellentesque</a></li>
								<li><a href="#">Suspendisse iaculis mauris</a></li>
								<li><a href="#">Urnanet non molestie semper</a></li>
								<li><a href="#">Proin gravida orci porttitor</a></li>
							</ul>
						</li>
					</ul>
				</div>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer-wrapper">
	<div id="footer">
		<p>Copyright (c) 2012 Karol Kalinowski & Paweł Bajguz. All rights reserved. Design by <a href="http://www.freecsstemplates.org/"> CSS Templates</a>.</p>
	</div>
</div>
<!-- end #footer -->
</body>
</html>
